//
//  TZColorScrollLabel.m
//  XMLYFM
//
//  Created by dllo on 15/12/29.
//  Copyright © 2015年 zzl. All rights reserved.
//

#import "TZColorScrollLabel.h"

@implementation TZColorScrollLabel
-(instancetype)initWithFrame:(CGRect)frame
{
    
    if (self = [super initWithFrame:frame]) {
        self.textAlignment = NSTextAlignmentCenter;
        self.font = [UIFont systemFontOfSize:20];
        self.scale = 0.0;
    }
    return self;
}

/** 通过scale的改变label的形态 */
-(void)setScale:(CGFloat)scale
{
    
    _scale = scale;
    self.textColor = [UIColor colorWithRed:scale green:0.0 blue:0.0 alpha:1];
    CGFloat minscale = 0.7;
    CGFloat trueScale = minscale + (1-minscale)*scale;
    self.transform = CGAffineTransformMakeScale(trueScale, trueScale);
    
    
}


@end
